<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="html-el" uri="http://struts.apache.org/tags-html-el" %>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>增加寝室</title>
</head>
<body>
	<h1>增加寝室，请填写寝室相关信息</h1>
	<html-el:errors/>
	<form action="addDormitory.do?method=add" name="dormitoryDTO" method="post">
		<input type="hidden" name="building" value="${buildingId }"/>
		<label>寝室名称<input type="text" name="name" value="${dormitoryDTO.name }"/></label>
		<label>寝室介绍<input type="text" name="description" value="${dormitoryDTO.description }"/></label>
		<label>寝室电话<input type="text" name="telephone" value="${dormitoryDTO.telephone }"/></label>
		<label>寝室可住人数<input type="text" name="capacity" value="${dormitoryDTO.capacity }"/></label>
		<input type="submit" value="提交"/>
	</form>
</body>
</html>